package com.hc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 付费专栏费用
 *
 * @author 梁云亮
 */
@ApiModel(value = "Domain:BlogCategoryCharge")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_blog_category_charge")
public class BlogCategoryCharge implements Serializable {
    private static final long serialVersionUID = -8106016555144868131L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Integer id;

    /**
     * 正常价格（元）
     */
    @TableField(value = "price1")
    @ApiModelProperty(value = "正常价格（元）")
    private Integer price1;

    /**
     * 优惠价格（元）
     */
    @TableField(value = "price2")
    @ApiModelProperty(value = "优惠价格（元）")
    private BigDecimal price2;

    /**
     * 更新频率
     */
    @TableField(value = "frequency")
    @ApiModelProperty(value = "更新频率")
    private Integer frequency;

    /**
     * 文章总数量
     */
    @TableField(value = "amount")
    @ApiModelProperty(value = "文章总数量")
    private Integer amount;

    /**
     * 简介
     */
    @TableField(value = "intro")
    @ApiModelProperty(value = "简介")
    private String intro;

    /**
     * 博客编号
     */
    @TableField(value = "category_id")
    @ApiModelProperty(value = "博客编号")
    private Integer categoryId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}
